package a.f.j.a;

import a.c.d;
import a.c.z;

class e
{
  private z a = null;
  private i b;
  private i c;
  private boolean e = false;
  private int f = 1;
  
  e(i parami1, i parami2, d paramd)
  {
    this.a = new z();
    this.a.add(paramd);
    this.b = parami1;
    this.c = parami2;
  }
  
  e(i parami1, i parami2)
  {
    this.b = parami1;
    this.c = parami2;
  }
  
  public String toString()
  {
    boolean bool = c.i;
    String str = this.b.a() + "->" + this.c.a();
    if (!bool) {
      if (this.f < 0) {
        str = "-" + str;
      }
    }
    if (!bool) {
      if (b()) {
        str = str + "*";
      }
    }
    if (!l()) {
      str = str + " (ne)";
    }
    return str;
  }
  
  z a()
  {
    return this.a;
  }
  
  boolean b()
  {
    return this.a == null;
  }
  
  boolean c()
  {
    boolean bool = c.i;
    if ((bool) || (this.a != null)) {
      if (bool) {}
    }
    return !this.e;
  }
  
  i a(i parami)
  {
    boolean bool = c.i;
    if (!bool) {
      if (this.b.k()) {
        this.b = this.b.l();
      }
    }
    if (!bool) {
      if (this.b == parami) {
        return this.c;
      }
    }
    if ((bool) || (this.c == parami)) {
      return this.b;
    }
    throw new RuntimeException("The edge " + toString() + " is not connected to the node " + parami.toString() + "!");
  }
  
  void b(i parami)
  {
    this.b = parami;
  }
  
  i d()
  {
    if (!c.i) {
      if (this.b.k()) {
        this.b = this.b.l();
      }
    }
    return this.b;
  }
  
  i e()
  {
    return this.c;
  }
  
  void f()
  {
    this.f *= -1;
  }
  
  int g()
  {
    return this.f;
  }
  
  void a(d paramd)
  {
    this.a.add(paramd);
  }
  
  int h()
  {
    return (c.i) || (this.a != null) ? this.a.size() : 0;
  }
  
  d i()
  {
    return (d)this.a.a();
  }
  
  void k()
  {
    this.e = true;
  }
  
  boolean l()
  {
    return this.e;
  }
  
  int m()
  {
    return 1;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.j.a.e
 * JD-Core Version:    0.7.0.1
 */